﻿<phone:PhoneApplicationPage 
    x:Class="OpenGovernment.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:super="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <StackPanel x:Name="TitlePanel" Grid.Row="0">
            <Image x:Name="logo" Source="diavgeia.png" Height="201" />
            <controls:PerformanceProgressBar Margin="0,100,0,0" Name="bar" IsIndeterminate="True"/>
        </StackPanel>
        
        <super:Panorama x:Name="panorama" Margin="0,190,0,0">
            <super:PanoramaItem>
            <!--TitlePanel contains the name of the application and page title-->
       
        <!--ContentPanel - place additional content here-->
        <ScrollViewer Height="700" Grid.Row="1">
            <Grid x:Name="grid" Margin="12,0,12,200">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="12*" />
                <ColumnDefinition Width="692*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height ="Auto"/>
                <RowDefinition Height ="Auto"/>
                <RowDefinition Height ="Auto"/>
                <RowDefinition Height ="Auto"/>
                <RowDefinition Height ="Auto"/>
                <RowDefinition Height ="Auto"/>
                <RowDefinition Height ="Auto"/>
                <RowDefinition Height ="Auto"/>
                <RowDefinition Height ="Auto"/>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                            <RowDefinition Height="18*" />
                        </Grid.RowDefinitions>
                <controls:ListPicker Name="typeSelect" Grid.Column="1" Grid.Row="1" Margin="12,0,6,0" FontSize="40">
                    <controls:ListPicker.FullModeItemTemplate>
                        <DataTemplate>
                            <Grid Margin="16 21 0 20">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>

                                <Rectangle Width="43" Height="43" Grid.Column="0" />
                                <TextBlock Text="{Binding}" Margin="16 0 0 0" 
                 FontSize="43" FontFamily="{StaticResource PhoneFontFamilyLight}" 
                 TextWrapping="Wrap" Grid.Column="1" />
                            </Grid>
                        </DataTemplate>
                    </controls:ListPicker.FullModeItemTemplate>
                </controls:ListPicker>
                <controls:DatePicker Grid.Row="2" FontSize="40" HorizontalAlignment="Left" Width="Auto" Value="10/1/2010" Grid.Column="1" Margin="57,5,0,79" Name="from" Height="Auto" Grid.RowSpan="3" />
                <controls:DatePicker Grid.Row="3" FontSize="26" HorizontalAlignment="Left" Width="Auto" Value="00:00:00" Grid.Column="1" Margin="52,15,0,35" Name="to" Height="Auto" Grid.RowSpan="2" />
                <TextBlock Height="Auto" Grid.Row="2" FontSize="28" HorizontalAlignment="Left"  Name="textBlock1" Text="Από" VerticalAlignment="Top" Width="85" Margin="0,15,0,0" Grid.Column="1" />
                <TextBlock Height="Auto" Grid.Row="3" FontSize="28" HorizontalAlignment="Left" Name="textBlock2" Text="Έως" VerticalAlignment="Top" Width="85" Margin="6,29,0,0" Grid.ColumnSpan="2" />
                <TextBlock Height="Auto" HorizontalAlignment="Left"  FontSize="28" Name="textBlock3" Text="Κατηγορία" VerticalAlignment="Top" Width="Auto" Grid.Column="1" />
                <TextBlock Grid.Row ="4" Height="Auto" FontSize="28" HorizontalAlignment="Left" Name="textBlock4" Text="Οργανισμός" VerticalAlignment="Top" Width="Auto" Grid.Column="1" />
                <controls:AutoCompleteBox Grid.Column ="1" FontSize="40" Grid.Row="5" Name="orgSelect" Margin="0,0,0,0" DropDownOpened="orgSelect_DropDownOpened" DropDownClosed="orgSelect_DropDownClosed" TextChanged="orgSelect_TextChanged" SelectionChanged="orgSelect_SelectionChanged" Height="86"></controls:AutoCompleteBox>

                <controls:AutoCompleteBox Grid.Row ="9" FontSize="40" Name="unitSelect" Visibility="Collapsed" Height="Auto" Grid.Column="1" DropDownOpened="orgSelect_DropDownOpened" DropDownClosed="orgSelect_DropDownClosed"/>
                <TextBlock Height="Auto" Width="Auto"  FontSize="28" Grid.Row ="8" HorizontalAlignment="Left" Name="textBlock5" Text="Τμήμα" VerticalAlignment="Top" Visibility="Collapsed" Grid.Column="1" />
                <controls:AutoCompleteBox Grid.Row ="7" FontSize="40" Name="signerSelect" Visibility="Collapsed" Grid.Column="1" DropDownOpened="orgSelect_DropDownOpened" DropDownClosed="orgSelect_DropDownClosed"/>
                <TextBlock Height="Auto" Width="Auto" FontSize="28" Grid.Row ="6" HorizontalAlignment="Left" Name="textBlock6" Text="Υπογραφέας" VerticalAlignment="Top" Visibility="Collapsed" Grid.Column="1" />
                <TextBlock Height="Auto" Grid.Row ="10" FontSize="28" HorizontalAlignment="Left" Name="textBlock7" Text="Λέξεις Κλειδιά" VerticalAlignment="Top" Width="Auto" Grid.Column="1" />
                <controls:AutoCompleteBox Grid.Column ="1"  FontSize="40" Grid.Row="11" Name="tagSelect" Margin="0,0,0,0" DropDownOpened="orgSelect_DropDownOpened" DropDownClosed="orgSelect_DropDownClosed" Height="80"></controls:AutoCompleteBox>
                <Button BorderBrush="White" Name="restore" Content="Όλα" FontSize="22" Grid.Column="1" Height="66" HorizontalAlignment="Left" Margin="215,14,0,0" VerticalAlignment="Top" Width="131" Grid.Row="3" Click="button2_Click" />
            </Grid>
        </ScrollViewer>
            </super:PanoramaItem>
            <super:PanoramaItem>
                <StackPanel>
                    <TextBlock FontSize="30" Text="DataViz - δαπάνες σε γραφικά"/>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Height="49" Grid.Row="2" FontSize="28" HorizontalAlignment="Left" Text="Από" VerticalAlignment="Top" Width="63" Margin="0,15,0,0" Grid.Column="1" />
                        <controls:DatePicker Grid.Row="2" FontSize="40" HorizontalAlignment="Left" Width="Auto" Value="1/14/2012" Grid.Column="1" Name="vfrom" Height="Auto" Grid.RowSpan="3" />
                    </StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Height="40" Grid.Row="3" FontSize="28" HorizontalAlignment="Left" Text="Έως" VerticalAlignment="Top" Width="60" Margin="6,29,0,0" Grid.ColumnSpan="2" />
                        <controls:DatePicker Grid.Row="3" FontSize="26" HorizontalAlignment="Left" Width="Auto" Value="00:00:00" Grid.Column="1" Margin="0,10,0,0" Name="vto" Height="Auto" Grid.RowSpan="2" />
                    </StackPanel>
                    <Button Content="Σήμερα" Click="Button_Click"/>
                    <Button Content="Φέτος" Click="Button_Click_1"/>
                    <TextBlock Text="Οργανισμοί    Υπογραφείς"/>
                    <StackPanel Orientation="Horizontal">
                        <RadioButton x:Name="rorg" Checked="rorg_Checked" Margin="20,0,0,0"/>
                        <RadioButton x:Name="rsign" Checked="rorg_Checked" Margin="60,0,0,0"/>
                    </StackPanel>
                    
                </StackPanel>
            </super:PanoramaItem>
        </super:Panorama>
    </Grid>

 
    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton Click="ApplicationBarIconButton_Click_1" IconUri="/icons/appbar.feature.search.rest.png" Text="αναζήτηση"/>
            <shell:ApplicationBarIconButton IconUri="/icons/appbar.questionmark.rest.png" Click="ApplicationBarIconButton_Click" Text="About"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>